new test for EventSource + request cancellation

Import from #285 with some fix and improvement