added unit test for user model