fix test ThreadPool