Refactor Node class and update test cases