test: test to_geojson output to prevent regressions like #2019