added integration test for undo redo