Boeing sometimes puts some extreme maneuvers into the approved flight test card, which is performed with FAA approval.
There has been several cases of 737s being rolled (accidentally) without damaging the airframe.
When test pilots fly extreme maneuvers on an approved test profile, its usually done at high altitude, not airshow flyover altitude.
Before the famous 787 demo flight, the pilot flew the maneuvers in a simulator, and did some practice at higher altitude before doing a low altitude demo routine.