Tests and code for the delete post resource.