add basic testing and toString functionality to all nodes