Unit tests for add post.