More unit tests for User.