make the WaitGroup a local var, which leaves the tests passing, and avoids the possible race condition.