add killleader test and leader monitor func