Tests added: tests for cds_cancel_primitive
Fixes the code in cds_cancel_primtive
Changes in cancel_cds_primitive