Fix failing test involving paths with  path segments