fixing MethodValidatorTest