testing cancellation mechanism