Use test_equal instead of operator== for testing floating point values.

The test_equal function has some tolerance for floating point error, which
can creep into the test.
Merge branch 'icc-fixes'