Added tests for Analyzer