For ENG-5400, fix test bugs in leader appointer