In Canada, we used to only ever do tailpipe tests, meaning a defeat device wouldn't be able to fool the testing. Apparently I'm wrong though - turns out Canada doesn't do tailpipe tests on cars newer than 1998 (this is news to me), meaning the defeat device is the exact reason why I hadn't heard about any cases of cars failing the emissions test.