[service] kpi math unit tests