Simulation to Reality: Testbeds and Architectures for Connected and Automated Vehicles