test synchronous queries