Tests for plugin() method