Fix test failures when running under CATALYST_DEBUG. RT#95358