Update cacheFactorySpec.js

Updated the test.