Cache response content; write corresponding tests