Test case for Pattern::purge_instrument
Fix Segmentation Fault in Pattern::purge_instrument
Merged conflict