Add user creation mechanism and associated tests.