Add tests for stream cors bug