Adds tests for the submatrix iterator