Add a test for caching directives

Not comprehensive but at least verifies that it's working