[api] fix testsuite

I forgot to commit before I pushed - happens to the best :)