Write test that verifies that resizing a graph maintains highlightCallback.