Test changing content of a file