Implemented unit tests for User model.