Adding tests for Node class and adding exceptions to class