add small test case to consensus.js