replaced assert_array_equal with assert_allclose