tcp_test function is returning false for unknown hostnames
fixed typo