test edit a file