Added test for dijksta algorithm.