added testUndoRedo testcase