Fixes media tests and updates how the IPublishedContent is created from the xpath iterator