Dilatometer for use in tensile tests