Adding compilation tests for queries.