Correcting coordinate checks on LinearRing and LineString, updating test