test edit an existing file and add a new file