Add tests for renaming directory and file