Added test for matrix change.