fixed test for taskSpreader because of process cleanup