added unit test to vote to check that it has a value
added factories, created test for votes and post