Updated shortest path documentation and added tests.