Refactor and add tests for plugins.py

Improvement to the tests currently being run on ``plugins.py``

related #644 
Prefer `str.format()` (see ["String Formatting"](http://freeseer.readthedocs.org/en/latest/contribute/developers/styleguide.html#custom-guidelines))