refinement around os.rename test case