check that the device is returned properly