Fix incorrect wording for file.replace when run with test=True