Added more test cases to UndoManagerTest