Add rename file test case

This is for #12.