Test stdout in functional tests