better code for cache test.
On branch master
modified:   test/cache-test.js
modified:   test/run.js