unit tests for User model