Testing query passing