Fix test that occasional fails when order of json attributes varies