it's currently a free-floating function, but it could easily have a home in TestScenario, which could simplify/DRY some code