add simple test for query_count