[NGRINDER-657] Fix test error rate calucalation logic