Added tests for Barcode