TestGather implements concatenating the edges on the
path from v_1 to v_i and the character next(v_i).
Where v_1,..,v_i are vertices along some heavy path.