Refactor and add tests for plugins.py

Improvement to the tests currently being run on ``plugins.py``

related #644 
It's more pythonic to ignore the second element in the tuple instead of indexing.
```python
plugin_name, _ = os.path.splitext(filename)
```