Better handle concurrency in integration tests.