Fail gracefully when attempting to test unknown filetypes

Fixes #2