test and refactor addParticipant, removeParticipant.