add tests for is-distance-short
fix is-distance-short