Unittests: do not do sparsity mismatch testing outside ad.py