Improve test summary output logic after recent console refactoring.