Added test for user model