async def METHOD_NAME(conn, term, order):
    ana = await tok.create_query_analyzer(conn)
    await add_word(conn, 1, term, 'P', None)
    await add_word(conn, 2, term, 'H', term)
    await add_word(conn, 3, term, 'w', term)
    await add_word(conn, 4, term, 'W', term)
    query = await ana.analyze_query(make_phrase(term))
    assert query.num_token_slots() == 1
    torder = [(tl.tokens[0].penalty, tl.ttype.name) for tl in query.nodes[0].starting]
    torder.sort()
    assert [t[1] for t in torder] == order