-undo redo test added

add undo redo test.