Remove unwanted code from tests
Fixed a bug

If a required function is not defined in plugin
It raises NotImplementedError