use new .getDevices() helper
also updated with new .getDevices() helper
one char correction
added simple test (but protected by env.var)