Add sudo functional test, fix rabbitmq error