TD-1831, TD-1832 Creating mechanism to choose how to check if test run is finished