'Specific queryFactory for proxy that uses our custom
L{TestQueryFactory}, and save factories.'

def queryFactory(self, *args, **kwargs):

    factory = TestQueryFactory(*args, **kwargs)
    self.factories.append(factory)
    return factory
