Can I get a waiver for drive cycle tests not clearing? How can I get inspection? on 2005 Pontiac Bonneville

I just changed thermostat and sensor for engine light being on. Are the engine light and cycle tests related in this case. Car runs fine and getting 29 mpg highway/ 20 mpg city.

Asked by for the 2005 Pontiac Bonneville