General Motors has received a permit from local authorities to test its L4 autonomous vehicles in Shanghai.