[git tests] refresh correctly: with marking dirty