unit tests for Headliner.refreshContent, bugfix for Headliner.consume when HTTP errors occur