Add tests for the user model