Refactor and add tests for plugins.py

Improvement to the tests currently being run on ``plugins.py``

related #644 
I can add them back. I looked for any function that called these and didn't see anything that did. I can look at what might have actually caused the function to be added (yapsy maybe?)