Added unit tests for User model.