Refactor and add tests for plugins.py

Improvement to the tests currently being run on ``plugins.py``

related #644 
Are you trying to get the filename without the extension? E.g. `multiaudio.freeseer-plugin -> multiaudio`

Take a look at `os.path.splitext` which exists for splitting the extension from a pathname.