tests for plugin.py