In this paper, Testing quantum mechanics, S. Weinberg states that
The problem is to know what to test. Usually we can get guidance on how to test a theory like general relativity or the standard model of elementary particle interac- tions, by first inventing some generalized theory as a foil, such as general relativity with extra massless scalars, or the standard model with extra gauge bosons. By a “generalized” theory, I mean one that differs from the theory we want to test, but reduces to it when some parameters become very small. (In this sense, the local hidden variable theories do not qualify as generalizations of quantum mechanics.) We can set upper bounds on these parameters by doing experiments to look for new effects that could arise in the generalized theory, and in this way we get a sense of how accurate is the theory we want to test.
However, I cannot understand what does he mean by this paragraph? For example, why do we need a "generalized theory" to test the actual theory that we want to test?, and if we have one, how do we use it to test the actual theory? Is there any other way to test it [the actual theory]?