Add test for and fix REST save with rename