Add a matrix test case