Tests file rename.