Debug output in tests to test a race condition. To be reverted before merge.