test for the rename file method