A few unit tests for the consensus algo