Improved cachedb test.
Improved cachedb test.