fix discrepancy between error counts and test messages