tests: Fix number of successful tests calculation