Added tests for using the cache between tasks