HC=unburned hydrocarbons= running really rich
you can try to run the piss out of the car before the smog test and hope that all the hc's are buned off at the cats (which should be hot) before they reach your exhaust pipes or advance the timing to lean out a bit.
Good luck