add commit-undo test