[PDI-6900] Switch/Case Step does not work when trying to use same target step twice

Fix + junit tests.