Tests, mainly for sparse matrix