api tests: improve coverage