Counting the number of tests correctly