def METHOD_NAME(apiobj, table_factory, logtype):
    table_factory('word',
                  definition='word_id INT, word_token TEXT, type TEXT, word TEXT, info JSONB',
                  content=[(55, 'test', 'W', 'test', None),
                           (2, 'test', 'w', 'test', None)])
    apiobj.add_placex(place_id=444, class_='place', type='village',
                      centroid=(1.3, 0.7))
    apiobj.add_search_name(444, names=[2, 55])
    loglib.set_log_output(logtype)
    results = apiobj.api.search('TEST')
    assert loglib.get_and_disable()