Add cli tests.