Unit tests for edit posts.