Concurrency tutorial and test code