test restore ordering