Fixed bugs in a few tests, added option to zero matrices in MatrixKernel and MatrixKernelRegistry