test code with rabbitmq