Lyft wins permit to test self-driving cars in California