Note that it is not necessary to use the `parallel_task` class here. The tests only need to verify the behavior of the `word_counter` class. In fact, using the `parallel_task` class in the tests is actually a bad idea, since now a change to the code in the `parallel_task` class will impact these tests, which is probably unexpected. It is better to maintain isolation between different components in the system.