Added a query to logging tests