fixed compute shortest path issue in test