added test to ThreadPool