add assertion to testGetQuery