Test barcode scanner code