New test case for thread join