UndoStack & test cases