add tests for dynamicPolyline and dynamicPolygon.