tested literal dictionary and list
moved tests for node add methods to separtate files corresponding to each node type.  other minor refactoring.