testing the adding of word index to the vertex