added test_* to the distance functions