Refactor and add tests for plugins.py

Improvement to the tests currently being run on ``plugins.py``

related #644 
Why not just ls the directory where the plugins are located and check if it matches the number?
(considering we organize the plugins logically by directory in Freeseer anyway)