Modified the memecache for unit-test