TS-1475: fix copy/paste log message in API tests

Coverity #1196427