slightly more careful way to set ready to true
add test for cachePathReady