Fix torrent collecting unit test failures.