add test to cli/api