Piping stdout to stderr in regression testing