tests added for words, leaves and generating a tree (vertical) view