Fixed issue with get_device on yubikey
Fixed failing tests, should also work without YubiKey