Added tests for user's model