bugfix: modified state is reset even when saving fails + more tests

DocumentHandlerTest tests if modified state is reset

adds more tests

(0) -10 -3 +3 tip

mercurial