Modified constructor for Node objects and updated unit tests