remove example test module, see main/_tests/ for some real tests
new check_ip() validates if a str is a ip addr and also determines address family, deduplicate code