Tests for plugin.py