Tests for query support