Tests whether one path is inside another path