Test infrastructure

* Extract common asynchronous logging functionality to `TestHelpers`.
* Fix bugs in synchronous `IQueueingService` tests.