correction in the calculation of packages and tests