Fixed test coverage calculation.