Added unit tests for User.