Add a Thread test case