added a test file and test for a sparse matrix