Adding test for querying log