fix and failing testcase for custom barcode adapters in barcode object construtor