Polyline tests

Add tests for polylines.