add barcode test logic