Made GetNode a public funciton and added a test for it