Tests for new matrix slicing functions