MT#7067 fix api tests