A test implementation of ThreadPool