Add test for illegal file type