Add unit tests for CrossAnalyzer