Make CLIMainTest easier to run against remote CDAP instances

Thanks Alvin! LGTM! :+1: