Model unit tests for edit post.