Framework for testing Dijkstra algorithm