Add tests to confirm updateCache is called with two directory params.