testmatrix figure