debugging tests.
bugfix in firing UndoRedoStateChanged