Add cacheCustomData unit tests