Bug 845549 - Expose an helper to ease testing console output in tests r=@erikvold