I don't like this idea for cars with gasoline engines.
When climbing the onramp, sometimes you have to floor the accelerator and go to open loop. That increases the HC in the exhaust significantly. Cars that would pass the test in normal driving could fail there. This is a good reason for using a dyno to test smog.
My dad's 1987 Hyundai Excel was like that. My grandmother had a 1988 Honda Civic was almost as bad. Although modern cars usually don't have such a bad power to weight ratio, I could see this having a similar effect on fully loaded trucks, vans, and RVs.