[#1] Added destroy plugin method and test for it