Add unittests for poller with rabbitmq