Fix CliTester so that sample integration tests can be run