Concurrency testing utils