Fix broken test that assumed cases come in order