Add tests on API main methods
Update commandline doc