Tesla gets Shanghai approval to test advanced driver assistance