Test proxy stream handling