some api unit tests