Add unit test for renaming a file.