[API] [CI] Added small tweaks to the API integration tests under CI

* Do not use ANSI when running in CI
* Improve the Curl-traces in `CapturedLogger`
* Minor cleanups