Instrument Template._stream in test client as well as Template._render