added `rename` method and tests.