tests/function/distance-to-marker.cc: add additional sanity checks