adds solver test

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

(0) -10 -2 +2 tip

mercurial