fixed average;added test count