Fix tests after path sorting behavior