refactor user creation in tests