Implement code for user model tests