Move parseGeometry workaround into the tests