Add thread leak test.