Add some tests for user model