added test cases for ThreadPoolService