[corlib] Improve a test failure to be more actionable.