Writing tests for User model