Redirect stderr to stdout when testing