Refactored brittle thread pool tests.