fixing another distance test