Updated the tests and implementation for the RabbitEventPublisher