Migrate rename tests in integration-cli to api tests Upstream-commit: afbc9c4cfc5d6f812e3c11c0b0bae8be41f380f7 Component: engine