add unit test for user model