Adds failing test for stage updates no replacing old configuration in stage groups
Replaces the StageGroup stages set with a map to ensure only one configuration per stage is stored