Fix getDevices test: 'undefined' is an acceptable argument