Added tests for cases when hosts cannot be connected to.