Add cancel case pattern test case