fix undo test