Adding kernel tests for sparse matrices