Tests for linestring/linearring construction

Test when constructing from LineString and add special checks
for when the line is unclosed