LinkByActorQuery: finished writing tests