Add stubbed test for getPathToRoot