More refinements to unit tests for User.