update test_measture_distortion to use recipe & db