added test for distortion correction