fix set default object in Barcode tests