Tests for caching source and fixes.
Merge branch 'mb-pages' into cache-test-fix
Merge branch 'mb-pages' into cache-test-fix
Merge pull request #762 from mapbox/cache-test-fix

Cache test fix