add cli test.