Fixed concurrency issue.
Improved concurrency test.