added shortest path test