Fixes to DAOs to allow tests to complete successfully when no cacheManager is available.