I pass cops all the time. They're stuck in the gridlock (suburbs near Rochester) and I just wheel by. I think that it would only become an issue if you caused an accident and they managed to notice it. Although, in NYC, I think the cops are a little more aware of them so may experience ticketing there. If your bike is stealthy enough they won't even see the motor (my rear pannier bag hides a bit of it).