Fixed GraphWeighting test.