You have to look into it in a bit more detail. For example, if you combine nearby measurements of the Hubble constant and supernovae with WMAP data, you end up with a nearly-flat universe.
If you then proceed with the assumption of flatness and make use of BAO data, you get a connection between length scales at different redshifts. If this link between length scales at different redshifts doesn't line up, then that would be evidence that the assumption of homogeneity was wrong. Basically, this length scale being at the expected place with the assumption of flatness is a reasonably direct test of the relationship z+1 = 1/a.
There are all sorts of different ways you can do this sort of experiment, but the basic idea here is that if you make a series of assumptions, and multiple independent experiments measure the same set of parameters based upon those assumptions, you gain confidence that those assumptions are, in fact, true, at least in an approximate sense. One of those foundational assumptions is homogeneity.