Adjust test to pass in pane to preview
Add spec for `close`