Add test for EditorHistory.begin() and .end(). Fix bug in .begin() where an extra undo was added.