Check if service is available for cli tests

This commit adds checks to the CLI tests to see whether the service
that is being tested is available or not. Previously the tests would
run regardless of whether the service was listed as available in the
config file or not.

Change-Id: I16e0bbab85d2234d671ea2577757b38480e66d69
4 files changed