[test][algorithms][distance] add test case for open polygon and linestring

In the added test case the distance is materialized between the linestring and the last (implicit) segment of the polygon.

The test case currently fails, but will succeed once PR #147 is merged.