Tests for query filters