Solved misbehavior to make DirectoryLinks test pass.