fix C++ diagnostics test output after test change