one more test for shortest path