Pr 2689

Clean up the tests a bit.

The yield statements (or the inverted if condition?) seem to have prevented some of the slicing test from running -- they show now some failures.

The inv test for boolean matrices fails if UMFPACK is enabled, as it wants float inputs.
This is probably OK, as the inverse is not computed in the boolean sense.