California also has mobile smog stations which is like a portable dyno that they will set up on the side of the road and a cop will "randomly" pull people over to check them. I saw them once but they had one car on it and another waiting behind it so I didnt get pulled over.