I don't understand this from a regulator's point of view: as a regulator, all you have to do is test for symptoms. You don't have to explain root causes. You drive the vehicle in conditions as close as possible to real ones, measure emissions, and decide whether or not they're above the norms.
Why would regulators do this in a lab? It's like health inspections that would ask restaurants to send food to be tested, instead of showing up anytime, unannounced.
Regulators should pick up real cars from real owners and test them on the road, at regular intervals.
Or, modern technology should allow to test a car all the time and report emissions and fuel efficiency, etc. during its lifetime.
People cheat, and if cheating is easy they cheat more. The one thing a regulator cannot do is trust the industry.