[api] 2 small fixes for the test suite