added QueryTest