bug fix and test fixes for response caching in poll