Use ArtifactCache's get_cache_size when calculating the quota

The changes to tests are required because I moved the cache size
validation into `ArtifactCache`. This matters because some tests
instantiate `ArtifactCache`s without running the validation done in
`Context.load`.
7 files changed