Added test case for debugging threads.