Added cancellation unittest