Fix tests and compiler warnings

- Added an additional check to make sure the testMessageBus is not set with
any previously used messageBus. This is needed especially the way we initialize
the test message bus. For example, if RabbitSingle node tests run before
RedisSingle node tests and Rabbit wasn't available, the Redis tests still use
Rabbit message bus that was set before.

- Fixed compiler warnings