Fix barcode tests.