small fix for tests
wrote some api document