improved concurrency test to allow any order of execution