Update testcase for matrix