TST: sparse: replace __numpy_ufunc__ version checks by functionality check

A better way to do it, but probably not very important in practice.