added test function for distance parser