Added unit test for adding a post.