chore: add test cases for API interface