little changes for test thread pool