Add tests for distance between stops

Adds tests for the DistanceStops indicator, including tests based on the AdHoc system so it's easy to manually verify correctness.