Add defType to query builder tests.