add unit test for MatrixAnalyzer