Convert the layer to GeoJSON for tests

This allows checking of the entire layer at once, presuming serialization is consistent.