nodeList class and testing
api first approach