Refactored user validations tests