use mock to test that flatcontent uses the cache