add a test for invalid geometries