This "hack" by VW should have been caught in weeks by the EPA. It was detected simply by driving the car around with a sensor in the tailpipe.
And yes, when emissions testing switched to relying on the OBD codes, all was lost. Even I thought about hacking the ECU to report "all good"