Testing barcode encoding