add smoe test and update doc/api.md