unit tests: MDL-22175 Still more improvements unit test failure display.
unit tests: MDL-22175 Still more improvements unit test failure display.

Thanks to Eloy for suggesting these improvements:
1. We display debuginfo if it is there.
2. If the exception refers to a missing lang string, we output as much
information as we have.

dilawar/moodle