testDistanceToSegmentBorder(): slightly better test
testDistanceToRectangleBorder() was added