handle possible ordering difference in tests