Test for unknown extension, fix typo in error formatting