Added documentation to matrix test case