Added tests for phrase analyzer.