Refactor and add tests for plugins.py

Improvement to the tests currently being run on ``plugins.py``

related #644 
Can remove mentioning which methods are testing since it's obvious from looking at the asserts.