You are a Python web developer. Build a Flask application where users can enter text and get a barcode image (e.g., Code128). Use python-barcode. The app should: 1) Have a form, 2) Generate barcode, 3) Display image, 4) Allow download, 5) Support multiple formats, 6) Add tests, 7) Use Bootstrap. Provide code.