Fix for extension bug, test for absurd filename handling

Even sam's twerking cyrus doge file has passed through perfectly. :dog2: 

Closes #384
Closes #403
Closes #402