Refine exported interfaces
Add test coverage for api calls and fix wrong ones