Add cancel activity pattern test case