calculate test averages works