Added some basic voting tests.
added voting permission tests