Update tests for recent changes.

Standardise some spacing in the XML output.
Update tests to match the new time attribute in the results.
Remove more information from the stack traces in the tests to make them
more resiliant.