small tweaks to plugin handling and tests
Merge pull request #22 from ugexe/tests

small tweaks to plugin handling and tests