Could you explain the three tests, perhaps in short code comment? The first tests what happens if Glance returns the same version we expect, but a different scheme? And the second returns only different versions? Or am I misunderstanding this?