Improve unit test output and logging to diagnose build breaks