Fixing ValidatorFactoryTest