Keep references to some tasks so they're not garbage-collected.
Get tests dealing with lists instead of tuples.
Improve InvColelctor test.
Fix tests.
Revert "Get tests dealing with lists instead of tuples."

This reverts commit 774f4de74549b6bb8a973b0bcfd5bd4b95ef25f0.
Fix InvCollector test.