test for matrix matrix