Could you add tests of distance values for both of these functions?