Fix tests after changes from #12598

The messages in the UndefinedMethodFatalErrorHandlerTest have been updated to match the new format.