fix test after -1*Double.MAX_VALUE -> Double.NEGATIVE_INFINITY