Tested the join and leave event functionality