eliminate all zero-matrix in tests