add integration test for streaming xhr