Gene, if your car is an older one, sometimes it gets a hickup as my dad says..
Here is a trick
Take one of your battery post off the battery for a few minutes before you go to emission test. It should stay off..downside of this, you have to reprogram all radio stations