TST: sparse: misc. clean up in tests

Removing unused variables etc.