Added some consensus unit tests