added tests to check whether hosts are configured properly