Use assert_almost_equal to avoid floating point roundoff errors on different machines