added test for getPathBetween