Adding tests and implementation to RabbitChannel.