update test of getTotal Distance function