Make getLink tests pass.
Make getNodeFromLinks tests pass.