wip: finish tests for AnalysisService