Fixed crashing test if device is offline on Win