added new test for providing a window to allow undo