API unit-tests