-- adding code and test for checking plugin attachment