tests: replace the flat list of contexts with a hash

This way we can return more values without breaking callers.

Created by  Graham Christensen  on February 26, 2021
4QI6G7YB64IPWRQYGI4D2CEEUGPSVM6MVKUA4VVRKKIEA4D34FEQC
Change contents