Change the oil, fresh fuel & drive it at freeway speeds as much as possible on your way to the test station. You want the Cat Can to be hot. Don't shut off the car if you have to wait for your test.
My '87 failed at first. I performed the above & it passed.
Good luck
~JM~