Refactor the validation rules assertions in the UsersController test case.