Creates queues and scanners and sends some messages between them.