Change calls to numpy.testing.assert_almost_equal to calls to
numpy.testing.assert_allclose for more consistent floating point
comparisons.