Shapes: add tests

and corrections after review.

and delete lenght of geojson, it was useless