PollDemuxer: fix POLLHUP
create automatic test for ClientTester