[test] fix creation of SVG for intersection, the SVG block was placed
in the wrong function when splitting the original function