Completed tests for shortest_paths.py