test cancel deprecate