A REST test for device recognition