Add query cache
Add base tests for QueryCache