Implemented thread pool functional test.