fixing validatorTest