TST: sparse: fix tests

Fix the slicing test, and do not run inverse test for booleans (this
fails if UMFPACK is enabled).