modified test case to call rms_dist