Also, the junker ecu will have a different VIN, which will cause red flags at inspection.
I was just reading a thread about Diesel Dubs (aka GermanDieselMotorwerks.com), and he does immo deletes for $150.
If your ecu is merely tuned, and don't have any emissions crap deleted (DPF, EGR, etc), then you should probably just take it in and see what happens. Might want to check readiness beforehand, just to be sure they don't instantly fail you on that. if you recently deleted a CEL, your readiness will be zeroed out, and will need to drive a while to get it back to "ready".
Take a look in the West Coast subforum here to see what other smog info there is.
https://forums.tdiclub.com/index.php?forums/west-coast-canada-usa.31/