fixed test failure without access to cache dir

nosetests would fail if the cache file/directory did not exist on the system.  They were not properly mocked.