added tests spGrp_stageafter and spGrp_stagebefore