Fix tests errors (float32, useless error from DebugMode(the inf is removed by an opt, faster tests)
Print more detailled warning.
Merge pull request #1705 from nouiz/fix_tests

Fix tests errors in buildbot