Migrate some kill integration cli test to api tests Upstream-commit: 21c9e5701bef4687847adb9c26ac42583a57c174 Component: engine