Added unit tests for Democracy.