A few user-related testing utilities
Merge pull request #700 from RickMohr/test-utils-for-login

A few user-related testing utilities