Added test cases for PopFromUndoStack API