added unit test for dijkstra and fixed so positions and zoom do not reset when calculating shortest path