[CDAP-27] Tests for cdap-cli module

I was going to add more tests before merging, but looks like we'll need to merge now. I'll add more tests in a separate PR.