improve unit test UserValidatorTest