test that query cache is cleared