add api test
Merge branch 'lfapi'