extracted AnalysisTest; fixed stacked bars