Add X-Cache-Invalidation Tests

closes #1397
- added checks for x-cache-invalidation to api tests