In my state, pedal bikes are not allowed to be ridden in a traffic lane. That's why there are bike lanes. Motorized bikes do not get any special privileges over pedal bikes. They are still bicycles, which is why they require no license, registration, or insurance. Only a very fit cyclist could reach 30 mph, and then only on a very light road bike. 30 mph is nowhere near realistic bicycle speeds. Most pedal bikes around here never exceed 10 mph. The only exceptions seem to be the spandex crowd. And they are certainly physically fit. But they don't ride 30 mph. The law in my state says "motor ASSISTED bicycles, not to exceed 48cc and 20 mph. However, there is also a "reasonable and prudent" speed law. 20 mph can still get you a ticket if riding that fast puts anyone in danger. The only time I ride 20 mph, which is pretty much the top speed for my friction drive bike, is outside the city limits, on the shoulders of rural roads, with speed limits up to 65 mph. There are MANY pedal cyclists who ride on these roads. If you come up behind one, you must slow down, and wait for a chance to move out onto into a traffic lane to pass. NEVER pass another bicycle on the shoulder. Remember, motorized bicycles are NOT motorcycles, and cannot be ridden as such. They are simply bicycles that you do not have to pedal.
I live in the suburban Phoenix area, where it is none too safe to ride a bicycle. But I am close to the edge of it, in the last city to the south, so it is a fairly short ride out of town to rural country roads. Every time I ride, I take the shortest way out of town. I like to take 100 mile rides out in the country. When I need to go somewhere in town, I take a car.