test for api and better readme