api: fixed deploy tests.