Unit test to test rename on directories

Added a unit test to ensure mv/rename also works on directories in
addition to files.

Ref #4157