Edited some tests to correctly call dijkstra function, dijkstra function itself working incorrectly