Testing BarcodeScanner