Fix failing tests after the mime for file refactor.