Add unit test for AnalysisMode