E-bike, e-scooter riders must pass online theory test, be certified from Jan 1