Adding tests for query log