Optimism got a much-needed boost in May on hopes for trade pace between the U.S. and China, according to a survey Tuesday.