added test for assigning matrix rows