Added tests for dijkstra