fix test case for leader
add test case