Sane handling of listings that are found by multiple search tasks.

Test for daemon main loop.