add unit test for ThreadPool module