corrected file.append state to not report modifications when file is in correct state
Merge pull request #15060 from YanChii/file_append_bug

corrected file.append test state