adding remaining tests and methods to Node class