Add tests for encoding a single post.