Enhanced test support and improved wrapping for http.message.