added test for 2 query classes