Refactored tests. Added ability to get all posts.