changed pregel vertex test