add test for binary cachedb and contents generation