Added tests for User model