test: fix API test