Add tests for polylines
Update polyline tests
bugfix to polyline and update tests