calcDistance tests