TST: sparse: fix tests

Fix the slicing test, and do not run inverse test for booleans (this
fails if UMFPACK is enabled).
Merge pull request #1 from pv/pr-2689

Pr 2689