redirect stderr to stdout in test