Added new test cases for UndoManagerTest