[D37][Testing] (SO, LG) Refactored Tests and Implementation of Node classes