What's it failing for? NOx for instance is different than CO2 when it comes to problem shooting.
One thing, though, is to do an oil and air filter change beforehand and then run in a good 20 minutes on the highway in 4th gear to get the cat and exhaust nice and hot. IIRc you can akllso advance/play around with the timing 1-2 degrees and still pass.