testing updating of a file