put the currentTestCase function in  a separate thread