add test for barcode generation, and modify the version of barcode dependency which is used, because the upstream version is buggy