Updated the test NamesAndTreesTest so that

It doesn't use the findIndex method anymore