Remove duplicated computation of number of tests