Add test for ListenableDirectedWeightedGraph.