[fix refactor test] Use `composer-api`.