Make the unit tests run on an event loop thread so the infrastructure is properly initialized.