Video technology is used to reverse two incorrect decisions as Spain beat France in a friendly in Paris.