test case demonstrating thread leak