Add cancellation functional tests.