refactored RunSimulationTests