I would have refused to rev the engine and open the hood. If he asks to search your car and you say no, there is nothing he can do about it. (at least in WI, I don't know about LA)
Get printouts for all the components he said were illegal and take them to court.