added tests for user model