added tests for the user model