[Test] Ignore a test case if executed on the main thread