Fix false error in DebugMode with a test.

We explicitly use and -inf in the graph, so DebugMode shouldn't complain about this.
update NEWS.txt
Update NEWS.txt
Update NEWS.txt
Merge pull request #1227 from nouiz/fix_test

Fix test and update NEWS.txt