I remember reading in Life With Groucho that they felt taking a script straight to the screen, as they had with some of their previous films, was a mistake and that the first time they tried scenes from A Night At The Opera in front of an audience they bombed.
I guess it would be overreaching though to say The Marx Brothers invented focus group testing.