Extracted ResponseReader class. Restored tests for it.