Several formats in which Wagner’s hypothesis has been formulated and tested have been listed on page 5 of the revision. That paragraph includes six different approaches.
Moreover, most studies that add variables to the models, such as the dependency ratio, argue that Wagner’s law holds conditional on it.