the test code for concurrency