PIM-3237: add a test on query builder type