Test that a LEG_SWITCH mode at the end of a graph path does not generate an extra leg
Do not repeat last leg when ending with a transit mode
Merge remote-tracking branch 'origin/generateItinerary'