Our technicians are Ontario Certified Drive Clean Inspector.
According to Ontario law, if the car has check engine light on, inspector should not even put the car onto the emission test.
A good sensor doesn't guarantee you will pass the test. On the other hand, a bad sensor not necessary failing the test. The idea is the "service station cannot run the emission test while check engine light is on".
As a certified technician, I need to clarify that the statement "passing emission test when check engine light on" is not necessary false but I am saying "Service station cannot even start the test in the very beginning".
Your oil changer is already running their own rules on this test.