instead of `assert_equal` use `assert_true` with `np.allclose` - this is better for floating point computations