added test cases for constructor, getRow, getCols, toString