Corrected and extended the Dijkstra test.