Unit rest tests for edit post.