There's no guarantee as to iteration order for accounts/channels, but this test was relying on them. Adding account attribution and comparing by account_ids fixes Fixes: #5869 Reported-By: @rustyrussell