Add debug messages to Listener

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
test_listener: Wait to receive everything before stopping listener

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>