Testing Large Language Models on Driving Theory Knowledge and Skills for Connected Autonomous Vehicles