fix failing examples-api tests
(cherry picked from commit f2ffbbb62a11909eb42910202af48a9fcc704858)