test thread pool