Fixed bugs in and reached 100% coverage of thread pool classes.