Add UndoStack tests.