only check resourceId order since we may have two statuses at the same d

fix a test that can fail randomly