Migrate some integration-cli test to api tests Upstream-commit: 5e7a245c3f63a29fb0eb96d8897238b9dd3cfc47 Component: engine