barcodeDataformat attribute always ignored.

small fix and test-code.