add tests for User model