Add more test for #check_barcode.