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

DocumentHandlerTest tests if modified state is reset

adds more tests

adds tests for focus events

(0) -10 -4 tip

mercurial