Add createPost() test and method.