Fix cid.
Add test for paget and caching.