Extract UserInfo creation from test methods