Unit test for Analyzer