Add a 'createTestUser' utility function for QUnit tests