Removing assumption that the cache directory is in the root
Updating tests to work with cache directory configuration
Adding tests for snapshots