Fix test to accept either ordering of Dict keys.