Encapsulate Hashing and add tests to vote class

tasellielund
wlparker