fixed detection for 'unknown' device types; fixed tests