Working code for cds_cancel_primitive
Test Cases for cds_cancel_primitive