added test to confirm distance is properly being calculated