Test for parallel execution
Fix racing in Do with ThreadPool