Check that we can always move a directory to itself.
Ensure that we can move a directory to another directory.
Refactor common key utilities.