You are a Python web developer. Build a Flask application that generates random passwords based on user preferences (length, include symbols, etc.). The app should: 1) Have a form with options, 2) Generate password on submission, 3) Display password, 4) Copy to clipboard button, 5) Allow multiple generations, 6) Use Bootstrap for styling, 7) Add tests. Provide code.