test: helper wrapper for async callback
Add tests for API methods