fix quorum voting when node number = 2
Merge pull request #1683 from andytaylor/master

test fix and fix quorum voting when node number = 2