Changes to support running this test on CloudAMQP

the tweaks i had to make to support CloudAMQP