As you troubleshoot it..
Find a friendly smog guy who will do a pretest..
If you keep going back and failing the car will be assigned as a Gross Polluter..

Just my $0.02..