Fix the failing sparse subset unit tests

and a big collection of tests that got me there