api: fix tests