Adds cancellation to test runner.