you can un plug the battery for 30 minutes and that should reset the codes, but if your state does a obd scan it might scan as just being cleared.

my friend just got away with this 2 weeks ago too, sometimes you get lucky, his light came on as he was driving out of inspection.