Add base tests for QueryCache