added test for polyline generation