[test][to_svg] Add geom_to_svg() helper function.
[test][centroid] Improve the test for Polygon using big coordinates.