Fix test for setDebugLevel
Add an internal method to refresh the device descriptor

(mostly for debugging)