Added unit tests for draft post.