test coverage for ycg & templater; caught minor bug in cache rebuild