Added some testing around the DistanceUtils.