QueryBuilder constructor unit tests