test barcode -> card