unit test for thread pool,draft