Unit test for editing a post.