start changing common sparse matrix test functors to macro-based definitions