Refactoring long polling transport to be able to fix bug #3227

Maybe rename this test now that the PollingRequestHandler doesn't exist.