def METHOD_NAME(c, RE, hw):
    RE.subscribe(c.v1.insert)
    (should_match,) = get_uids(RE(count([hw.det]), foo="a"))
    (should_not_match,) = get_uids(RE(count([hw.det]), foo="b"))
    results = c.search(Key("foo") == "a")
    assert should_match in results
    assert should_not_match not in results