fix running test failure due to AMQP destruction