Test code 'Asynchronous cancellation of a workflow'