Refactor and add tests for plugins.py

Improvement to the tests currently being run on ``plugins.py``

related #644 
I added in a class. In this scenario is it more pythonic to use the fixture since pytest is already being used?