fix EdgeWeightedGraph tests