Refactor explicitly setting expected post type for post content-type header expectation