added a Node constructor and unit tests