adding test for zero-distance case