adding multi-instance test run logic