Test of barcode scanner