Added tests for user model