HDFS-6099: more tests
HDFS-6099: remove prints
HDFS-6099: handle edge case of renaming within same directory