Fix changed_module_ancestor_from_real_path specs

[#56005352]

Forgot to run full specs after fixing last bug and introduced a new one
in the specs.