tests written kpi factory