Added a range of tests here for various combinations of empty rows and columns, plus a matrix declared empty but sized, rather than initialised with values.