unify counting test results to a dict