The more reliable test is emission test on dynamometer.On dynamometer a typical driving (that issued by standard bodies)is "simulated" ,and during the test we capture all exhaust gases .At the end of test we analyse and declare emission as grams of pollutant per "cycle", as per standard.
In each country ,some organizations standardize the "cycle" (the typical driving).Do you want some additional information?