test/polyline: Renamed flat_points variable to flatPoints
test/polyline: Reset testing data before each test

.. instead of using slice()
test/polyline: Added encodedFlatPoints to testing data variables

DRY...