Add some diagnostics to the tests to detect logcontext problems