Tests cached resource content is discarded when cached resource is destroyed if content size is too big for the resource agent's data storage.