When switchPath specified, set iteration template in _createIteration.

Tests needed.