Test case add joinServer and LeaveServer function