added some tests for queries