write test about user model attr validation