Write test to create post.