fix test_ThreadPool as well