Test cancel action