Test editing file