thread-pool: Add unit test for the thread pools