ENH: sparse/sputils: add some tests for the compat routines