test commit of a text file