A random sample of each make and model of car should be periodically put through far more stringent testing than normal, in an effort to catch this kind of thing. Allowing this cheat to go undetected for so long speaks to the failure of the testing regime.