Expose stdout to fix tests