progress on API unit tests