Test get_data calculation of distance