ctx manager tests for concurrency