Add spec for cache/deployment with source blocks.
Fix deployment from cache with source blocks.