fix threadpool test