Tests for AMQP factory.