Added a test for matvec in the matrix_tests