fix BatchServerInventoryViewTest waitForSync() logic