Test: Distance calculation.