Fixed wrong test for file extension.