(Merged from 383024.) Added unit test for case where parent path is empty and child adjustment contains .. at beginning.