Add tests for Context cache destruction.