Test for custom query classes.