fixed concurrency in tests