updated test to rename file on windows