Testing why path and shortestPath behave differently.