Factored out creating new users in tests.
Worked out creating test users using test client; diagnostic code included.