refactored unit tests
added validation tests + added getPost feature
added unit tests for vote feature