Renamed getPathToRoot to getPathFromRoot as direction has changed.
Updated unit tests as direction has changed.