Test case for sync.WaitGroup race