implemented first unittest for shortest path