Unit Tests!!

Got coverage to 90% for both dump and tree. It's close but I'm not familiar enough with some of the edge cases that may be necessary to get coverage to 100%. Good start though.