Added a test for Redis.
Some fixes for majority vote.