committing undo cmds (used for testing)