Add test for edit post.