properly count the number of tests