Add X-Cache-Invalidation Tests

closes #1397
- added checks for x-cache-invalidation to api tests
Merge pull request #1418 from sebgie/issue#1397