checks for non-existent file, parses mime type and increases test coverage