fix integration test concurrency issues