Better debug output

We have some failing tests on various platforms.
The output on failure gives no clue to why they fail.
I'm trying to fix that so we can investigate what's actually broken !
The failures aren't reproducible locally.