add and test a retriable getAvailableDevices