tests: add thread pool unit tests