California is one of the first states to approve rules for the testing of autonomous vehicles on public roads, but driverless cars may already be legal in many states.