Make all anisotropic matrixes unit tests use templates