fixed distributed cache in testcache.java

fixed distributed cache in testcache.java but still have to modify
anchorgraph with this matter.