Refraction Compensation in Non-Destructive Testing