adding tests for threadpool